<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@page import="test.*"%>
<%@page import="java.util.*"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet" type="text/css" href="main.css"></link>
<script type = "text/javascript" src = "workshop.js"></script>
<title>Workshop Exists</title>
</head>
<body>
<div id="header">
<div style="float: left"><img height="75px" width="165px"
	alt="IMAGE" src="./Img/banner1.jpg" /> <img height="75px" width="165px"
	alt="IMAGE" src="./Img/banner2.jpg" /> <img height="75px" width="165px"
	alt="IMAGE" src="./Img/banner3.jpg" /> <img height="75px" width="160px"
	alt="IMAGE" src="./Img/banner5.jpg" /> <img height="75px" width="160px"
	alt="IMAGE" src="./Img/banner4.jpg" /> <img height="75px" width="162px"
	alt="IMAGE" src="./Img/banner7.jpg" /></div>

</div>
<div id="main">
<div id="main-left">
<div id="links"><a id="link1" href="Home.jsp"> Home </a> <br />
<br />
<a id="link2" href=""> About Conference</a> <br />
<br />
<a id="link3" href="RegisterConference.jsp"> Register</a> <br />
<br />
<a id="link4" href="ListOfAttendees.jsp"> List of Attendees</a> <br />
<br />
<a id="link5" href="PresentWorkshop.jsp">Present a Workshop</a> <br />
<br />
<a id="link5" href="">Administrator</a> <br />
<br />
<a id="link6" href="">My Profile</a></div>
</div>
<div id="main-right">
<h1 id="title"><em>Tutor/Mentor Leadership And Networking
Conference</em></h1>
<div class = 'myProfile'>
<form id="addWorkshopDetails"  name = "workshop_form" action="AdminWorkshopExistsSave.jsp" style="visibility:visible"  method="post">

Workshop Name: <input type="text" name="wTitle" id=txtConference style="width: 275px"/>
<br />
<br />
Workshop Description:
<p><textarea rows="5" cols="55" name = "wdescr"></textarea></p>

<%
String conferenceId = request.getParameter("Conference_list");
System.out.println(conferenceId);
int confId = 0;

if(conferenceId == null || conferenceId.equals(""))
{
	confId = (Integer)session.getAttribute("conferenceId");
}
else
{
confId =  Integer.parseInt(conferenceId);
session.setAttribute("conferenceId", confId);
}

	try {
		WorkshopDataAccess1 workshopData = new WorkshopDataAccess1();
		Workshop w = new Workshop();
		List<Workshop> l1 = new ArrayList<Workshop>();
		l1 = workshopData.getAvailableTimeSlots(confId);
		Iterator<Workshop> i = l1.iterator();
		String previousDay = "";
		String currDay = null;
		while (i.hasNext()) {
			w = i.next();
			String day1 = w.getHeldOn();
			String startTime = w.getStartTime();
			String endTime = w.getEndTime();
			currDay = day1;
				%> <input type="radio" name = "timeSlots" value="<%=startTime%>-<%=endTime%>+<%=day1%>" /> <%=startTime%> - <%=endTime%> : <%=currDay%> <br/>
				<br/>
				
				<%
		}
	} catch (Exception e) {
		e.printStackTrace();
	}
%>

<h4>What level of experience does this presentation address:
<select name="Session_experience_level"> 
  <option value="Beginner">Beginner</option> 
  <option value="Advanced">Advanced</option> 
  <option value="Both">Both</option> 
  </select> 
</h4>
<h4> Enter the email id of the main speaker for the workshop:</h4>
<h6>Note: A workshop may be presented by a number of speakers but each workshop will have one main speaker.
</h6>
Email: <input type = "text" id = "txtEmail" name = "Email" style="width: 275px"/>
  <br/>  
  <br/>
  <input type = "hidden" id = "stime"  name = "startTime"/>
  <input type = "hidden" id = "etime"  name = "endTime"/>
  <input type = "hidden" name = "dateOfWorkshop"  id = "date" />
  <input type ="submit" id = "btnSubmit" value = "Submit" onclick="get_radio_value()"/>
<input type="reset" id = "btnReset" value = "Reset"/>
</form>
</div>
</div>
</div>

</body>
</html>